<template>
  <div class="detilInfo" v-if="Object.keys(detailBaseInfo) !== 0">
    <p class="title">{{ detailBaseInfo.title }}</p>
    <div class="priceLine">
      <span class="nowPrice">￥{{ detailBaseInfo.highNowprice }}</span>
      <span class="lowPrice">{{ detailBaseInfo.lowPrice }}</span>
      <sup class="count">{{ detailBaseInfo.discountDesc }}</sup>
    </div>
    <div class="collectCount">
      <span v-for="(item, index) in detailBaseInfo.columns" :key="index">
        {{ item }}
      </span>
    </div>
    <div class="service">
      <span
        v-for="(item, index) in detailBaseInfo.services"
        :key="index"
        class="service-item"
        v-show="index > 0"
      >
        <img :src="item.icon" alt="" />
        {{ item.name }}
      </span>
    </div>

  </div>
</template>

<script>
export default {
  name: "DetailBaseInfo",
  props: {
    detailBaseInfo: {
      type: Object,
      default() {
        return {};
      },
    },
  },
};
</script>
<style scoped>
.detilInfo {
  padding: 0 10px;
}
.title {
  font-size: 14px;
  /* font-weight: bold; */
  letter-spacing: 1px;
  line-height: 20px;
}
.priceLine {
  padding-bottom: 20px;
}
.nowPrice {
  font-size: 16px;
  font-weight: bold;
  color: rgb(245, 110, 162);
  padding-right: 10px;
}
.lowPrice {
  font-size: 14px;
  color: gray;
  text-decoration: line-through;
  padding-right: 10px;
}
.count {
  font-size: 12px;
  padding: 2px;
  background-color: rgb(245, 110, 162);
  color: white;
  letter-spacing: 1px;
  border-radius: 20%;
}
.collectCount {
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e7e5e5;
  justify-content: space-between;
}
.collectCount li {
  list-style: none;
  flex: 1;
}

.service {
   display: flex;
    justify-content: space-between;
  padding: 20px 0;
  font-size: 14px;
}
.service-item img {
  width: 14px;
}
.service-item {
  padding-bottom: 5px;
  font-size: 12px;
}


</style>